from pygame import Surface
import pygame

def tile_image(base_image, width, height):
    tiled_image = Surface((width, height))
    
    for i in range(width // base_image.get_width() + 1):
        for j in range(height // base_image.get_height() + 1):
            tiled_image.blit(base_image, (i*base_image.get_width(),j*base_image.get_height()))
    return tiled_image